
/* 基础设置，版心，很多模块会用到 */
.container {
    width: 1190px;
    margin: 0 auto;
}

/* 顶部导航条start */
.topbar {
    height: 30px;
    background-color: #ECECEC;
}

.welcome { /* 行内元素垂直居中，找父类，行高=高度 */
    height: 30px;
    line-height: 30px;
    font-size: 0px;
    color: #666;
}

.welcome span, .welcome a {
    font-size: 12px;
}

.welcome .hello { /* 请 与左边设置间距 */
    margin-right: 28px;
}

.welcome .login {
    padding-right: 10px;
    border-right: 1px solid #666;
}

.welcome .register {
    padding-left: 10px;
}
/* 顶部导航条end */

/* 右侧导航区 start*/
.topbar .list {
    height: 30px;
    line-height: 30px;
}
.topbar .list li {
    float: left;
/*     padding-left: 15px;
    padding-right: 15px; */
    /* border-right: 1px solid #666; */ /* 给a 加，给li加高度太高 */
}

.topbar .list li a {
    padding: 0 15px;
    border-right: 1px solid #666;
}

.topbar .list li:first-child a {
    padding-left: 0;
}

.topbar .list li:last-child a {
    padding-right: 0;
    border-right: 0;
}

.header {
    height: 120px;
    background-color: skyblue;
}

.header .search form {
   margin-top: 42px;
   font-size: 0;
}

.header .search input {
    width: 508px;
    height: 34px;
    border: 1px solid #DD302D;
}
.header .search button {
    width: 80px;
    height: 36px;
    background-color: #DD302D;
    vertical-align: top;/* 基线对齐 */
    background-image: url(../images/serch_icon.png); 
    background-repeat: no-repeat;
    background-position: 28px 6px;   
}
/* 右侧导航区 end*/

/* 主导航栏start */
.main-nav {
    height: 48px;
    border-bottom: 1px solid #DD302D;
}

.main-nav .all-types {
    width: 190px;
    height: 48px;
    line-height: 48px;
    background-color: #DD302D;
    text-align: center;
    font-size: 16px;
    color: white;
}

.main-nav-list {
    height: 48px;
    line-height: 48px;
}

.main-nav-list li {
    float: left;
    margin: 0 10px;
    font-size: 16px;
}
/* 主导航栏end */

/* 主要内容区start */

.main-content {
    margin-top: 10px;
}
/*  主要内容区 侧边一级菜单start */
.main-content .slide-nav {
    width: 190px;
    height: 458px;
    background-color: #F4F4F4;
    position: relative;
}

.main-content .slide-nav li {
    font-size: 14px;
    height: 28px;
    line-height: 28px;
    padding-left: 16px; /* 由于背景色原因，故这里写padding，而不是margin */
}

.main-content .slide-nav li:hover {
    background-color: #DD302D; /* 背景色填充padding，但不填充margin */
}

.main-content .slide-nav li:hover>a {
    color: white;
}
/* 主要内容区 一级菜单end */
/* 主要内容区 二级菜单start */
.second-menu {
    width: 700px;
    height: 458px;
    background-color: #F4F4F4;
    position: absolute;
    top: 0;
    left: 190px;
    padding-left: 20px;
    display: none;
}

.main-content .slide-nav li:hover .second-menu {
    display: block;
}

.second-menu dl {
    height: 36px;
    line-height: 36px;
}

.second-menu dl:first-child {
    margin-top: 10px;
}

.second-menu dt {
    float: left;
    width: 70px;
    font-weight: bold;
    margin-right: 10px;
}

.second-menu dd {
    float: left;
}

.second-menu dd a {
    padding: 0 10px;
    border-left: 1px solid #666;
}
/* 主要内容区 二级菜单end */

/* 轮播区域 */
.main-content .banner {
    width: 690px;
    height: 458px;
    /* background-color: green; */
    margin: 0 10px;
}

/* 侧边栏 */
.main-content .slide-other {
    width: 290px;
    height: 458px;
    /* background-color: orange; */
}
.slide-other .message {
    width: 260px;
    height: 156px;
    padding: 0 14px;
    border: 1px solid #D9D9D9;
}
.slide-other .message .title {
    height: 38px;
    line-height: 38px;
    border-bottom: 1px solid #D9D9D9;
}
.slide-other .message .title span {
    font-size: 14px;
}
.slide-other .message .title a {
    font-size: 12px;
}
.slide-other .msg-list li {
    height: 26px;
    line-height: 26px;
}

/* 侧边栏底部区域 */
.slide-other .other-nav {
    margin-top: 10px;
    width: 290px;
    height: 290px;
    /* background-color: gray; */
    overflow: hidden; /* 作用：解决margin塌陷 */
}
.other-nav-list:first-child {
    margin-top: 16px;
}
.other-nav-list:nth-child(2) {
    margin: 17px 0;
}
.other-nav-list li {
    width: 48px;
    height: 70px;
    /* background-color: rgb(161, 201, 216); */
    float: left;
    margin: 0 11px;
    text-align: center;
    cursor: pointer;
}
.other-nav-list li:first-child {
    margin-left: 16px;
}

.other-nav-list .picture {
    width: 48px;
    height: 48px;
    background-image: url('../images/精灵图-侧边功能.png');
}

.other-nav-list:nth-child(1) li:nth-child(1) .picture {
    background-position: 0 0;
}
.other-nav-list:nth-child(1) li:nth-child(2) .picture {
    background-position: -48px 0;
}
.other-nav-list:nth-child(1) li:nth-child(3) .picture {
    background-position: -96px 0;
}
.other-nav-list:nth-child(1) li:nth-child(4) .picture {
    background-position: -144px 0;
}
.other-nav-list:nth-child(2) li:nth-child(1) .picture {
    background-position: 0 -48px;
}
.other-nav-list:nth-child(2) li:nth-child(2) .picture {
    background-position: -48px -48px;
}
.other-nav-list:nth-child(2) li:nth-child(3) .picture {
    background-position: -96px -48px;
}
.other-nav-list:nth-child(2) li:nth-child(4) .picture {
    background-position: -144px -48px;
}
.other-nav-list:nth-child(3) li:nth-child(1) .picture {
    background-position: 0 -96px;
}
.other-nav-list:nth-child(3) li:nth-child(2) .picture {
    background-position: -48px -96px;
}
.other-nav-list:nth-child(3) li:nth-child(3) .picture {
    background-position: -96px -96px;
}
.other-nav-list:nth-child(3) li:nth-child(4) .picture {
    background-position: -144px -96px;
}

/* 主要内容区end */

/* 秒杀区域 */
/* #region秒杀区start*/
.seckill {
    margin-top: 10px;
}
.seckill img {
    float: left;
    margin-right: 11px;
    cursor: pointer;
}
.seckill img:last-child {
    margin-right: 0;
}
/* #endregion秒杀区end*/
